package duckcase.duck;

import duckcase.duck.strategy.fly.NoFly;
import duckcase.duck.strategy.quack.RubberQuack;

/**
 * description:
 *  橡皮鸭
 * @author yuanmenglv on 2019/11/25
 */
public class RubberDuck extends Duck {
    public RubberDuck(){
        this.flyAble = new NoFly();
        this.quackAble = new RubberQuack();
    }


    @Override
    public void display() {
        System.out.println("这是橡皮鸭");
        this.fly();
        this.quack();
    }
}
